Wrong date fromat in Doors - without time.

From what i see in my Doors 9.5.1.2

 

But when I request CreatedOn date it is seen as date format witout hours :minutes and seconds. But when I request vie OSLC 2.0 modified date it behaves like dateTime and have hours, minutes and seconds. The format is still date and I can not understand from where is the problem? In the pure date or something in hte Doors configurations.

 

The problem here is something in the configuration I think because:

    <rm_property:attrDef-7 rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime"   >2012-07-02</rm_property:attrDef-7>

but 2012-07-02 is not DateTime is date, and I am wondering why Doors 9.5.1.2 behaves in that way? Why the date which is returns is not in the right format?

In RDNG there is no Date format but Timestamp and there this problem does not appear.

So then when I try to parse the date I have exception form the Jena that

Dec 07, 2015 9:24:47 AM org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper handleExtendedPropertyValue
WARNING: Property http://localhost/....attrDef-7 could not be parsed as datatype http://www.w3.org/2001/XMLSchema#dateTime
com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '2015-06-10' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime -> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime]

because 2015-06-10 is not dateTime but Date. How can I change the format of the attribute to Date time.

 

When I try to create new attribute I can add

 

But on the system attributes I do not have rights to change them and to "Includetime of the day" even if I am logged in as Administrator.

 

 

PS. But as I understand from here:

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014915837#77777777-0000-0000-0000-000014916537

the time can not be include in the Predefined System Attributes.


Dinio - Mon Dec 07 04:22:14 EST 2015

Re: Wrong date fromat in Doors - without time.
DoorsXLAustralia - Mon Dec 07 05:40:42 EST 2015

You can cast a Date variable to either include the time or not include the time

 

dateOnly
Declaration
Date dateOnly(Date d)
Operation
Returns a copy of the supplied date value, without any included time-of-day information (it returns a date-only value).

 

dateAndTime
Declaration
Date dateAndTime(Date d)
Operation
Returns a copy of the supplied date value including time-of-day data.

 

Sean

Re: Wrong date fromat in Doors - without time.
Dinio - Mon Dec 07 05:42:58 EST 2015

DoorsXLAustralia - Mon Dec 07 05:40:42 EST 2015

You can cast a Date variable to either include the time or not include the time

 

dateOnly
Declaration
Date dateOnly(Date d)
Operation
Returns a copy of the supplied date value, without any included time-of-day information (it returns a date-only value).

 

dateAndTime
Declaration
Date dateAndTime(Date d)
Operation
Returns a copy of the supplied date value including time-of-day data.

 

Sean

But I use OSLC to make the query and recieve this result ,you suggest to write custom DXL which to use?

Re: Wrong date fromat in Doors - without time.
DoorsXLAustralia - Mon Dec 07 07:56:59 EST 2015

The anatomy of the DOORS database predates OSLC by quite a few years so there will probably be many features of DOORS which can be accessed by DXL but not accessed by OSLC.

Sean